import {
    SET_TABLEVISIBLE
} from '../actionType'

const initState = {
    tableVisible: false,
};

const groupReducer = (state = initState, action) => {
    let newState = JSON.parse(JSON.stringify(state));
    let {
        type,
        payload
    } = action;
    switch (type) {
        case SET_TABLEVISIBLE: {
            newState.tableVisible = payload;
            return newState
        }
        default: {
            return newState
        }
    }
};

export default groupReducer